<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      width: 280px;
      padding: 16px;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      background: #ffffff;
    }

    .container {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 12px;
      border-bottom: 1px solid #eee;
    }

    .title {
      font-size: 16px;
      font-weight: 600;
      color: #1a1a1a;
    }

    .status {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 0;
    }

    .status-left {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .status-icon {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      transition: background-color 0.2s ease;
    }

    .status-icon.enabled {
      background-color: #10B981;
    }

    .status-icon.disabled {
      background-color: #9CA3AF;
    }

    .status-text {
      font-size: 14px;
      color: #374151;
    }

    .features {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 12px;
      background: #F9FAFB;
      border-radius: 8px;
    }

    .feature-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: #4B5563;
    }

    .feature-icon {
      color: #10B981;
    }

    .footer {
      font-size: 12px;
      color: #9CA3AF;
      text-align: center;
      padding-top: 12px;
      border-top: 1px solid #eee;
    }

    /* 开关按钮样式 */
    .switch {
      position: relative;
      display: inline-block;
      width: 36px;
      height: 20px;
    }

    .switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #9CA3AF;
      transition: .3s ease;
      border-radius: 20px;
    }

    .slider:before {
      position: absolute;
      content: "";
      height: 16px;
      width: 16px;
      left: 2px;
      bottom: 2px;
      background-color: white;
      transition: .3s ease;
      border-radius: 50%;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    input:checked + .slider {
      background-color: #10B981;
    }

    input:checked + .slider:before {
      transform: translateX(16px);
    }

    input:focus + .slider {
      box-shadow: 0 0 1px #10B981;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="header">
      <div class="title">Copy Free</div>
      <label class="switch">
        <input type="checkbox" id="toggleSwitch" checked>
        <span class="slider"></span>
      </label>
    </div>

    <div class="status">
      <div class="status-left">
        <div id="statusIcon" class="status-icon enabled"></div>
        <div id="statusText" class="status-text">已启用复制功能</div>
      </div>
    </div>

    <div class="features">
      <div class="feature-item">
        <span class="feature-icon">✓</span>
        <span>右键复制已解除限制</span>
      </div>
      <div class="feature-item">
        <span class="feature-icon">✓</span>
        <span>快捷键复制已解除限制</span>
      </div>
      <div class="feature-item">
        <span class="feature-icon">✓</span>
        <span>文本选择已解除限制</span>
      </div>
    </div>

    <div class="footer">
      访问任何网页时自动生效
    </div>
  </div>
  <script src="popup.js"></script>
</body>
</html>
